package myoa

import org.codehaus.groovy.grails.validation.routines.UrlValidator

/**
 * Created with IntelliJ IDEA.
 * User: ibaby
 * Date: 13-1-8
 * Time: 下午5:15
 * To change this template use File | Settings | File Templates.
 */
class MyValidator {
    static url = {
        def u = UrlValidator.getInstance()

        return (u.isValid(it) || u.isValid("http://${it}"))
    }
}
